package com.example.newstudent.controller;

import com.example.newstudent.entity.Result;
import com.example.newstudent.service.bulletinService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@CrossOrigin
@RestController
@RequestMapping("/bulletin")
public class bulletinController {
    @Autowired
    bulletinService bulletinService;
    @PostMapping("/selectBulletin")
    public Result selectBulletin(){
        System.out.println("公告展示");
        return Result.success(bulletinService.selectBulletin());
    }
}
